home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Button part.1 < prev    next >
Encoding:
Internet Message Format  |  1996-07-03  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Button part
  2. Sent:        7/3/96 10:12 AM
  3. Received:    7/3/96 10:21 AM
  4. From:        Troy Gaul, tgaul@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >After converting our part to R1, we no longer can embed the CyberButton
  9. >part.  When attempting to do so, we get a fatal error inside the
  10. >CyberButton part.  Is there an incompatability between the new ODF R1 and
  11. >Cyberdog?  If so, is there a fix? (We are using Cyperdog release 1.0)
  12. >Being able to embed this part is a key to our product.
  13.  
  14. This problem in particular comes from the fact that ODF 1 doesn't handle 
  15. AcquireContainingPartProperties correctly.
  16.  
  17. The problem is that FW_CODPart::AcquireContainingPartProperties (in 
  18. FWODPart.cpp) assumes incorrectly that the frame passed into the routine 
  19. is one of its display frames.  In fact, that frame is an embedded frame 
  20. belonging to another part.  Getting the FW_CFrame from that frame will 
  21. fail (but, since the part info is not NULL, it will try to dispatch to it 
  22. as if it were a CFrame).
  23.  
  24. There are a couple ways you could fix this (depending on whether you want 
  25. to support any containing part properties or not).  I understand ODF 2 
  26. has some changes in this regard, so if you want to support them, you 
  27. might want to use the same design to ease migration.
  28.  
  29. _troy
  30.  
  31. ......................................................................
  32.  Troy Gaul                                            tgaul@apple.com
  33.  Apple Computer, Inc.                               OpenDoc Partsmith
  34.  
  35.  
  36.